import {get, post, del, put} from "@/apis/http/request";
import {BookingShareRecord} from "@/apis/model/booking/BookingShareRecordModel";

/**
* 得到列表
* @param params
*/
export const getBookingShareRecordList = (params: any) => get("/bookingShareRecord/list", params)

/**
* 得到分页列表
* @param params
*/
export const bookingShareRecordPage = (params: any) => post("/bookingShareRecord/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteBookingShareRecordById = (id: number) => del("/bookingShareRecord/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertBookingShareRecord = (param: BookingShareRecord) => post("/bookingShareRecord", param)

/**
* 更新数据
* @param param
*/
export const updateBookingShareRecord = (param: BookingShareRecord) => put("/bookingShareRecord", param)